<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入样式 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <!-- 若要直接在html中使用，需要挂载vue的js文件。-->
</head>
<body>
<div id="app">
    <el-menu>
        <el-submenu>
            <template slot="title">
                <i class="el-icon-location"></i>
                <span>导航一</span>
            </template>
            <el-menu-item>选项一</el-menu-item>
            <el-menu-item>选项二</el-menu-item>
            <el-menu-item>选项三</el-menu-item>
            <el-menu-item>选项四</el-menu-item>
        </el-submenu>
    </el-menu>
</div>

<script>
    new Vue({
        el: '#app'
    });
</script>

</body>
</html>